﻿using System;
using System.Diagnostics;

namespace Listing3_42
{

    public static class Program
    {
        public static void Main()
        {
            DebugDirective();
            Log("message");
            Console.ReadLine();
        }

        public static void DebugDirective()
        {
            #if DEBUG
                Console.WriteLine("Debug mode");
            #else
                Console.WriteLine("Not debug");
            #endif
        }

        [Conditional("DEBUG")]
        public static void Log(string message)
        {
            Console.WriteLine("message");
        }
    }
}